<?php echo \think\facade\View::fetch("public/header"); ?>

    <div id="right">
        <div id="content">
            <div id="breadcrumb">
                <a href="/admin/article/index/">首页</a> &gt;
                <a href="/admin/good/index/">点赞管理</a> &gt;
                点赞列表
            </div>

            <div id="choose_div">
                <!--                                <button id="choose-all" class="btn">全选</button>-->
                <!--                                <a href="#">删除选中任务</a>-->
<!--                <a href="/admin/admin/add/" class="add">增加管理员</a>-->
            </div>

            <table class="list">
                <tr>
                    <th></th>
                    <th>点赞Id</th>
                    <th>文章Id</th>
                    <th>用户Id</th>
                    <th>点赞状态</th>
                    <th>增加时间</th>
                    <th>修改时间</th>
                    <th>操作</th>
                </tr>
                <?php foreach ($like as $row): ?>
                    <tr>
                        <td><input type="checkbox"/></td>
                        <td><?php echo $row['like_id']; ?></td>
                        <td><?php echo $row['article_id']; ?></td>
                        <td><?php echo $row['user_id']; ?></td>
                        <td>
                            <?php if($row['like_status']==1){
                                echo  '点赞';
                            }else{
                                echo '取消点赞';
                            }; ?>
                        </td>
                        <td><?php echo date("Y-m-d H:i:s", $row['add_time']); ?></td>
                        <td><?php echo date("Y-m-d H:i:s", $row['update_time']); ?></td>
                        <td>
<!--                            <a href="/admin/admin/edit/admin_id/--><?php //echo $row['admin_id']; ?><!--/">编辑</a>-->
                            <a href="/admin/admin/delete/admin_id/<?php echo $row['admin_id']; ?>/">删除</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
    </div>

<?php echo \think\facade\View::fetch("public/footer"); ?>